package com.example.understandvideo.service.transcode;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;

@Data
@XmlAccessorType(XmlAccessType.FIELD)// 映射所有的字段
@XmlRootElement(name = "motionicon")// XML根节点名称，此处为user
@AllArgsConstructor
@NoArgsConstructor
@XmlType(propOrder = {
        "markid"
        , "posindex"
        , "name"
        , "path"
        , "posx"
        , "posy"
        , "operate"
        , "initialactive"
        , "framerate"
        , "imageformat"
        , "isloop"
        , "runtimevisible"
        , "timeintervalmode"})
public class Motionicon {
    String markid;
    String posindex;
    String name;
    String path;
    String posx;
    String posy;
    String operate;
    String initialactive;
    String framerate;
    String imageformat;
    String isloop;
    String runtimevisible;
    String timeintervalmode;

    public static Motionicon getDefault(String picDirPath) {
        return new Motionicon("234101594", "-1", "picToVideoTask", picDirPath, "0", "0"
                , "0", "0", "25", "1", "1", "-1", "-1");
    }
}
